#ifndef STATUSCTLWIDGET_H
#define STATUSCTLWIDGET_H

#include <QWidget>
#include <QPushButton>
#include <QTimer>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QComboBox>
#include <QGroupBox>
#include <QLCDNumber>
#include <QLineEdit>
#include <QGroupBox>
#include <QTableWidget>
#include <QHeaderView>
#include <QAbstractItemView>
#include <QMouseEvent>

class StatusCtlWidget : public QWidget
{
    Q_OBJECT
public:
    explicit StatusCtlWidget(QWidget *parent = nullptr);


private:
    // 状态区域的划分
    QWidget *DeviceInfoWidget;
    QWidget *StatusInfoWidget;
    QWidget *SetInfoWidget;
    QWidget *CtlBtnWidget;
    QWidget *OperatorInfoWidget;

    // 时间设置
    QWidget *DeviceTimeSetWidget;
    QWidget *DeviceSpeedSetWidget;

    // 时间设置数据
    QLineEdit *lineTimeEdit;
    QLineEdit *lineSpeedEdt;

    // 控制软件启动停止
    QHBoxLayout *SingleCtlElem;
    QPushButton *pBtnStart;
    QPushButton *pBtnStop;
    QPushButton *pBtnSave;
    QPushButton *pBtnExist;

    QGroupBox *pBtnCtlBox;
    QPushButton *pBtnAdd;
    QPushButton *pBtnDelete;
    QPushButton *pBtnImport;
    QPushButton *pBtnOutPut;
    QPushButton *pMultiBtnStart;
    QPushButton *pMultiBtnStop;


    QTableWidget *tableWidget;

signals:


public slots:
    void mousePressEvent(QMouseEvent *event) override;
    void AddLineData();
    void DeleteLineData();
    void onCellDoubleClicked(int row, int column);

    void SendSignelInstruct();
};

#endif // STATUSCTLWIDGET_H
